
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<link rel="stylesheet" href="../css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-inverse">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
    
      <a class="navbar-brand" href="#">Blog</a>
    </div>

  </div><!-- /.container-fluid -->
</nav>


<div class="container-fluid">

  <a class="btn btn-primary" href="/admin/create">添加文章</a>
  @foreach($arts as $val)
    <div class="panel panel-default">
    <div class="panel-body">
        {{$val->title}}
    <a href="{{url("/admin/{$val->id}")}}" class="btn btn-info">阅读</a>
    <a href="{{url("/admin/{$val->id}/edit")}}" class="btn btn-info" value="">修改</a>

        <form action="{{url("/admin/{$val->id}")}}" method="post" style="display: inline-block;">
            {{csrf_field()}}
            <input type="hidden" name="_method" value="DELETE">
            <button type="submit" class="btn btn-danger">删除</button>
        </form>
    
    </div>
    </div>
  @endforeach
</div>
<div class="panel-footer">
 {!!$arts->render()!!}
</div>
</body>
</html>